package weixintest;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/4/13 16:09
 */
public class InnerInterface {
    public static void main(String[] args) {
        InnerInterface out = new InnerInterface();
        Interface1 interface1 = out.new Implement();
        interface1.f();
    }

    // 嵌套接口默认是static的
    public interface Interface1 {
        void f();
    }

    class Implement implements Interface1 {
        @Override
        public void f() {
            System.out.println("test");
        }
    }

    abstract class AbClass {
        public abstract void g();
    }
}
